'use strict';

const redis = require('../../external/redisClient');

function getChecker() {
  return async() => {
    const testKey = 'testKey';
    const val = 'testVal';

    await redis.setAsyncSafe(testKey, val);
    const nval = await redis.getAsyncSafe(testKey);
    return nval === val;
  };
}

Object.assign(module.exports, {
  getChecker,
});
